'use strict';

module.exports = app => {
    class FindPwdController extends app.Controller {
        constructor(ctx) {
            super(ctx);
            ctx.backData = Object.assign({}, { site: app.config.site });
        }
        async member(ctx) {
            ctx.backData = {
                site: app.config.site,
            }
            await ctx.render('findPwd/member.html', ctx.backData);
        }

        async phone(ctx) {
            ctx.backData = {
                site: app.config.site,
            }
            await ctx.render('findPwd/phone.html', ctx.backData);
        }
    }
    return FindPwdController;
};